<?php
$CI =& get_instance();

$CI->load->database();
$CI->load->library("front/header_lib");

$page_title =  "kypris guide Registration form information";

     $title = $page_title;
//	$metakey_page = $row_vals->staticpage_metakey;
  //  $metadesc_page = $row_vals->staticpage_metadesc;

$datas = array();

$CI->header_lib->display_header_element(array("script"=>array("jquery-1.4.2"),"page_title"=>$title,"metakey_page"=>$metakey_page,"metadesc_page"=>$metadesc_page));
$CI->header_lib->display_header($datas);


?>
<style>
label.error {
    margin: 2px 0px;
    width : 360px;
}
</style>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>
<script type="text/javascript" src="<? echo site_url();?>/js/jquery.maskedinput-1.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var result_email = true;
    $("#telephone").mask("(999) 999-9999");
	$.validator.addMethod("emailCheck", function(val, elem) {                                                
        $.post("<?php echo site_url('json_request/check_directory_email')?>" ,{
             email: $('#email').val()                                  
        },function(data){
            result_email = (data=="TRUE") ? true : false;
        }, "json");
        return result_email;
    });
    
    $("#registerform").validate({
    	onkeyup: false,                 
        rules: {            
            email: {                
                required : true,                
                email : true
                    
            },
            name: {         
                required: true            
            },
            
            telephone: {                
                required: true
               
            }                        
                    
        },        
        messages: {           
            email: {                
                required : "Please input your e-mail address",                
                email : "Please input a valid e-mail address",
                emailCheck : "The e-mail address already exists in the database"            
            },
           name: {            
                required: "Please input your name"            
            },
           
            telephone: {                
               required: "Please input  telephone"
              
            }
        }          
      });
});
</script>
<!--body content starts-->

<div id="container_wrapper">
	
    	<div class="left_part">

             <?php $this->load->view(TEMPLATE_NAME.'/front/login_left'); ?>   

        </div>

        <div class="right_part">
            <?php
            $attributes =  array('id'=>'registerform', 'name' => 'registerform');
            echo form_open("register/index",$attributes);?>
            <div class="requrest_quote">
             <p>When you advertise with <a href="<?php echo site_url();?>">kyprisguide.com</a>, 
             not only are you listing your services on one of the most respected and trusted websites in the world, but you also have the peace of mind  in knowing that you will always be treated with respect and the highest professionalism. Here at 
             <a href="<?php echo site_url();?>">kyprisguide.com</a> we are dedcated to providing the best customer service experience to our clients(advertisers) It is this dedication to our clients that sets us apart all the other Adult Classified pages out there.
              Please feel free to <a href="<?php echo site_url('contact');?>">Contact Us</a> with any and all questions you have and will get back to you within a very reasonable time.</p>
            <ul>
            	<li>
                <div class="list_div01">&nbsp;</div>
                <div class="list_div02">
                	<h1 class="heading01">Registration </h1>
                   
                    <p class="redTxt">Simply enter your detail below and submit.</p>
                </div>
                <div class="clear"></div>
                </li>
                <li>
                	<div class="list_div01">your name</div>
                    <div class="list_div02">
                    	<input name="name" id="name"  type="text" value="<?php echo $name;?>" />
                		<?php echo form_error('name'); ?>
                    </div>
                    <div class="clear"></div>
                </li>
                
                <li>
                	<div class="list_div01">telephone</div>
                    <div class="list_div02">
                    	 <input name="telephone" id="telephone" value="<?php echo $telephone;?>" type="text" />
                		<?php echo form_error('telephone'); ?>
                    </div>
                    <div class="clear"></div>
                </li>
                <li>
                	<div class="list_div01">e-mail</div>
                    <div class="list_div02">
                    	<input type="text" name="email" id="email" value="<?php echo $email;?>" />
               			<?php echo form_error('email'); ?>
                    </div>
                    <div class="clear"></div>
                </li>

                <div class="height10_10"></div>
                <li>
                	<div class="list_div01">&nbsp;</div>
                    <div class="list_div02">
                    	<input type="submit" value="submit" name="submit_signup" id="submit" style="border:1px solid #194C75" />
                    </div>
                    <div class="clear"></div>
                </li>
                </ul>
                </div>
            <?php echo form_close();?>

        </div>
             <?php $this->load->view(TEMPLATE_NAME.'/front/side_right'); ?>  
        <div class="clear"></div>
    </div>

<!--body content ends-->

        <div class="clear"></div>


<!--body content ends-->
<?php
$CI->load->library("front/footer_lib");
$CI->footer_lib->display_footer();
?>

<?php
$CI->footer_lib->display_footer_element();

?>